#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#include <stdlib.h>
int main()
{
	char* arr = (char*)calloc(sizeof(char) , 100);
	if (arr == NULL)
	{
		perror("calloc");
		return 1;
	}
	scanf("%s", arr);
	FILE* pf = fopen("txt.txt", "w");
	if (pf == NULL)
	{
		perror("fopen");
		return 1;
	}
	while (*arr!='0')
	{
		fputc(*arr, pf);
		arr++;
	}
}